package json;

public class Json_Update {
	private String downloads;
	private String os;
	private String state;
	private String versions;

	// private String ver_name;

	public String getUpdateUrl() {
		return this.downloads;
	}

	public void setUpdateUrl(String downloads) {
		this.downloads = downloads;
	}

	public String getOs() {
		return this.os;
	}

	public void setOs(String os) {
		this.os = os;
	}

	public String getVersionCode() {
		return this.versions;
	}

	public void setVersionCode(String ver_code) {
		this.versions = ver_code;
	}

	// public String getVersionName(){
	// return this.ver_name;
	// }
	// public void setVersionName(String versionname){
	// this.ver_name = versionname;
	// }

	public boolean isForceUpdate() {
		int forceUpdate = Integer.valueOf(state);

		return (forceUpdate == 1) ? true : false;
	}
}
